# 获取当前日期
import hashlib
import time

def generate_token(salt):
    current_date = time.strftime("%Y-%m-%d", time.localtime())
    md = hashlib.md5(current_date.encode()+salt.encode())
    md5password = md.hexdigest()
    return md5password


if __name__ == '__main__':
    token = generate_token("-myopia")
    print(token)
